<!DOCTYPE html>
<title>::backdrop for a fullscreen object element</title>
<script src="../trusted-click.js"></script>
<style>
object::backdrop {
  background: blue;
}
</style>
<object width="200" type="image/svg+xml" data="../../svg/as-image/resources/100px-green-rect.svg"></object>
<script>
var object = document.querySelector("object");
Promise.all([
    new Promise((resolve, reject) => document.addEventListener("fullscreenchange", resolve)),
    new Promise((resolve, reject) => object.addEventListener("load", resolve))
]).then(() => testRunner.notifyDone());

testRunner.waitUntilDone();
var t = { step_func: func => func() };
trusted_request(t, object);
</script>
